package com.lulufind.lulu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lulufind.lulu.model.Post;
import com.lulufind.lulu.vo.PostInfoVO;

public interface PostMapper {
	public int save(Post post);
	public int update(Post post);
	public int updateOnWedding(Post post);
	
	public Integer checkId(@Param("postId")int postId);
	public Integer checkOwner(@Param("postId")Integer postId, @Param("postUserId")Integer postUserId);
	public Integer checkPostStatus(@Param("postId")Integer postId);
	public String checkPostPasswd(@Param("postId")Integer postId);
	public Integer checkAccessType(@Param("postId")Integer postId);
	public PostInfoVO findPostInfo(@Param("postId")int postId);
	public List<PostInfoVO> findUserPostInfo(@Param("userId")int userId, @Param("start")int start, @Param("num")int num);
	public List<PostInfoVO> findUserFollowPostInfo(@Param("userId")int userId, @Param("start")int start, @Param("num")int num);
	public int updatePostCover(@Param("postId")int postId, @Param("postCover")String postCover);
	public int updateStatus(@Param("postId")Integer postId, @Param("postStatus")Integer postStatus);
	public int updateExist(@Param("postId")Integer postId, @Param("postExist")Integer postExist);
}
